//
//  WQCityModel.m
//  快医
//
//  Created by 张德华 on 7/6/16.
//
//

#import "WQCityModel.h"

@implementation WQCityModel

+ (instancetype)cityModelWithDict:(NSDictionary *)dict{
    
    WQCityModel *model = [[WQCityModel alloc] init];
    
    [model setValuesForKeysWithDictionary:dict];
    
    return model;
}


+ (NSArray *)cityList{
    
    NSString *path = [[NSBundle mainBundle] pathForResource:@"province.plist" ofType:nil];
    
    NSArray *tempArray = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray *mArray = [NSMutableArray array];
    
    for (NSDictionary *dict in tempArray) {
        WQCityModel *model = [WQCityModel cityModelWithDict:dict];
        [mArray addObject:model];
    }
    
    return mArray.copy;
}
@end
